<?php
/* SVN FILE: $Id: cp_skin_member_form_ibmarket.php 157 2009-08-06 00:50:14Z supersmashbrothers $ */
/**
* ibMarket 2
* IP.Board 3.0
* ibMarket member editing html
*
* @author $Author: supersmashbrothers $
* @copyright $Copyright$
* @version $Revision: 157 $
* @lastrevision $Date: 2009-08-06 00:50:14 +0000 (Thu, 06 Aug 2009) $
* @modifiedby $LastChangedBy: supersmashbrothers $
* @lastmodified $LastChangedDate: 2009-08-06 00:50:14 +0000 (Thu, 06 Aug 2009) $
* @filesource $URL: http://ipb-ibmarket.googlecode.com/svn/ibmarket2/trunk/admin/applications_addon/other/ibmarket/skin_cp/cp_skin_member_form_ibmarket.php $
*/

class cp_skin_member_form_ibmarket extends output
{

/**
 * Prevent our main destructor being called by this class
 *
 * @access	public
 * @return	void
 */
public function __destruct()
{
}

/**
 * Main ACP member form
 *
 * @access	public
 * @param	array 	Member data
 * @return	string	HTML
 */
public function acp_member_form_main( $member ) {

$access_options = array();
$access_options[] = array(-1, 'Use Group Settings');
$access_options[] = array( 0, 'No Access (Overwrite)');
$access_options[] = array( 1, 'Allow Use (Overwrite)');
$market_access = ipsRegistry::getClass('output')->formDropdown('market_access', $access_options, $member['market_access'] );
$market_tax = ipsRegistry::getClass('output')->formSimpleInput('market_tax', $member['market_tax'] );
$market_money = marketFormatter::currencyFormat(ipsRegistry::getClass('output')->formSimpleInput($this->settings['market_members_field'], $member[$this->settings['market_members_field']]));

$IPBHTML = "";

$IPBHTML .= <<<EOF
	
	<div class='tablerow1' id='tabpane-MEMBERS|ibMarket'>
		<table class='alternate_rows double_pad' cellspacing='0'>
			
			<tr>
				<th colspan='2'>{$this->settings['market_name']}</th>
			</tr>
			<tr>
				<td><strong>{$this->lang->words['mem_market_access']}</strong></td>
				<td>
					<span id='MF__market_access'>{$market_access}</span>
				</td>
			</tr>
			<tr>
				<td><strong>{$this->lang->words['mem_market_tax']}</strong></td>
				<td>
					<span id='MF__market_tax'>{$market_tax}%</span>
				</td>
			</tr>
			<tr>
				<td><strong>{$this->settings['market_currency']}</strong></td>
				<td>
					<span id='MF__market_acess'>{$market_money}</span>
				</td>
			</tr>
		</table>
	</div>

EOF;

return $IPBHTML;
}

/**
 * Forums member tabs
 *
 * @access	public
 * @param	array 	Member data
 * @return	string	HTML
 */
public function acp_member_form_tabs( $member ) {

$IPBHTML = "";

$IPBHTML .= <<<EOF
	<li id='tabtab-MEMBERS|ibMarket' class=''>{$this->settings['market_name']}</li>
EOF;

return $IPBHTML;
}

}